var app = layui.app;

var data = app.proxy({
    a: 1,
    g: 2
});

app.beforeUpdate = function () {
    console.log("about渲染前")
}

app.afterUpdate = function () {
    console.log("about渲染后")
}

app.onDestroy = function () {
    console.log("about卸载了")
}